home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / qex / qexcvsd / mxcom.h < prev    next >
C/C++ Source or Header  |  1994-05-24  |  1KB  |  47 lines

  1. /* MXCOM.H -- header file for use with MX-COM MX709 codec board
  2.  *
  3.  * Used with Turbo C V2.0
  4.  *
  5.  * Copyright 1990, American Radio Relay League, Inc. */
  6.  
  7. /* Hardware definitions */
  8.  
  9. #define MX_A    MXBASE
  10. #define MX_B    MXBASE+1
  11. #define MX_DEC    MXBASE+2
  12. #define MX_STAT    MXBASE
  13. #define MX_PWR    MXBASE+1
  14. #define MX_ENC    MXBASE+2
  15.  
  16. /* Software definitions for mxcom.lib */
  17.  
  18. #define IDLE     0
  19. #define CHANA     1
  20. #define CHANB    2
  21. #define DECODER    0
  22. #define ENCODER    1
  23. #define THROUGH    1
  24. #define LOW        0
  25. #define HIGH    1
  26.  
  27. struct mxbuf
  28. {
  29.     char *dat;
  30.     unsigned n;
  31. };
  32.  
  33. extern unsigned mxecnt;        /* Encoder byte count */
  34. extern unsigned mxdcnt;        /* Decoder byte count */
  35. extern unsigned mxeover;    /* Encoder overspill count */
  36. extern unsigned mxdover;    /* Decoder overspill count */
  37.  
  38. void mxcard(unsigned base, char irq);
  39. void mxinit(char dsource, char esource, char aout, char bout, char rate,
  40.     char pagesize, char sens);
  41. void mxreset(void);
  42. void mx_encode(struct mxbuf *buf1, struct mxbuf *buf2, char *eobflag);
  43. void mx_decode(struct mxbuf *buf1, struct mxbuf *buf2, char *eobflag);
  44. void mxstop(char side);
  45.  
  46. extern unsigned int MXBASE;
  47.